package edu.pku.sei.act.ctrl.command;

import edu.pku.sei.act.model.mote.InitialNode;
import edu.pku.sei.act.model.mote.Mote;
import edu.pku.sei.act.model.mote.OuterModelElement;
import edu.pku.sei.act.model.mote.TaskEditArea;
import edu.pku.sei.gmp.model.concept.GMPModelElement;

public class CreateInitialNodeCommand extends CreateBaseCommand{

	private TaskEditArea model;//-----------------
	private InitialNode element;
	public CreateInitialNodeCommand(GMPModelElement parent, GMPModelElement element) {
		super(parent, element);
		this.model = (TaskEditArea) parent;
		this.element = (InitialNode) element;
		// TODO Auto-generated constructor stub
	}
	public void execute() {
		if (model != null) {
			element.setContainer(model);
		}
	}
	
	public void undo() {
		if (model != null) {
		}
		element.setContainer(null);
	}

}
